import VueRouter from 'vue-router';

import home from "./components/tabbar/HomeContainer.vue";
import vip from "./components/tabbar/VipContainer.vue";
import search from "./components/tabbar/SearchContainer.vue";
import shopcar from "./components/tabbar/ShopcarContainer.vue";
import newsList from './components/news/NewsList.vue';//新闻列表
import newsInfo from './components/news/NewsInfo.vue';
import photolist from './components/photos/PhotoList.vue'; //单击图片分享 显示页面
import photoInfo from './components/photos/PhotoInfo.vue';
import goodslist from './components/goods/GoodsList.vue';
import goodsinfo from './components/goods/GoodsInfo.vue';


var vr = new VueRouter({
    routes:[
        {path:"/",redirect:"home"},
        {path:"/home",component:home},
        {path:"/vip",component:vip},
        {path:"/shopcar",component:shopcar},
        {path:"/search",component:search},
        {path:"/home/newsList",component:newsList},
        {path:"/home/newsList/newsInfo/:id",component:newsInfo},
        {path:"/home/photoList",component:photolist},
        {path:"/home/photoList/photoInfo/:id",component:photoInfo},
        {path:"/home/goodslist",component:goodslist},
        {path:"/home/goodslist/goodsinfo/:id",component:goodsinfo}
    ],
    linkActiveClass:"mui-active"
})

export default vr